home *** CD-ROM | disk | FTP | other *** search
- /* structure of the light lump */
-
- #include "cmdlib.h"
- #include "mathlib.h"
- #include "bspfile.h"
- #include "entities.h"
- #include "threads.h"
-
- #define ON_EPSILON 0.1
-
- #define MAXLIGHTS 1024
-
- void LoadNodes (char *file);
- qboolean TestLine (vec3_t start, vec3_t stop);
-
- void LightFace (int surfnum);
- void LightLeaf (dleaf_t *leaf);
-
- void MakeTnodes (dmodel_t *bm);
-
- extern float scaledist;
- extern float scalecos;
-
- extern int c_culldistplane, c_proper;
-
- byte *GetFileSpace (int size);
- extern byte *filebase;
-
- extern vec3_t bsp_origin;
- extern vec3_t bsp_xvector;
- extern vec3_t bsp_yvector;
-
- void TransformSample (vec3_t in, vec3_t out);
- void RotateSample (vec3_t in, vec3_t out);
-
- extern qboolean extrasamples;
- extern qboolean fastlight;
-
- extern float minlights[MAX_MAP_FACES];
-
- void ScrnInit(void);
- void ShowStatusEntry(char *format, ...);
- void ShowTempEntry(char *format, ...);
- void PercentBar(int percent);
- void MajorPercentBar(int percent);
- void TimeUpdate(void);
- void CfPrintf(FILE *file, char *format, ...);
- void *qmalloc(int size);
- void qfree(void *mem);
-
- extern int StatusLine; /* Output line for status info */
- extern long int StartTime;
- extern long int LastCheck;
- extern int TotalStatusEntries; /* How many status entries have gone by (out of 32) */
- extern int CurPercent;
- extern int CurMajorPercent;
- extern FILE *LogFile;
-
- extern long int TotalAlloc;
-
- extern long facebrightness;
- extern long facebrightnesscount;
- extern long levelbrightness;
-
- #define malloc qmalloc
- #define free qfree
-
-
-